<?php
require_once '../sub/init.php';
header("Cache-control: private");
require_once 'chkUadm.php';
if(!in_array('huxuan',$QXARR))exit(noauth());
require_once ZEAI.'cache/udata.php';
if ( !ifint($fid))callmsg("www_zeai_cn_error_fid","-1");
if($submitok!='mylist'){
	$t = (ifint($t,'1-3','1'))?$t:1;
	$row2 = $db->ROW(__TBL_HUXUAN__,"id","id=".$fid,"num");if (!$row2){json_exit(array('flag'=>0,'msg'=>'互选不存在'));}else{$defpass = dataIO($row2[0],'out');}
}
if($submitok=='ajax_del'){
	if (!ifint($id))json_exit(array('flag'=>0,'msg'=>'记录不存在'));
	$row = $db->ROW(__TBL_HUXUAN_BMU__,"uid","id=".$id);
	if ($row){$uid= $row[0];}else{json_exit(array('flag'=>0,'msg'=>'记录不存在'));}
	$db->query("DELETE FROM ".__TBL_HUXUAN_BMU__." WHERE fid=".$fid." AND id=".$id);
	AddLog('【互选相亲会】删除报名用户->【uid:'.$uid.'】');
	json_exit(array('flag'=>1,'msg'=>'删除成功'));
}elseif($submitok=='ifok_update'){
	if (!ifint($id))json_exit(array('flag'=>0,'msg'=>'记录不存在'));
	$row = $db->ROW(__TBL_HUXUAN_HXU__,"uid,ifok","id=".$id);
	if ($row){$uid= $row[0];$ifok= $row[1];}else{json_exit(array('flag'=>0,'msg'=>'记录不存在'));}
	$ifendok=($ifok==1)?0:1;
	$ifendok_str=($ifendok==1)?'未确定->已确定':'已确定->未确定';
	$db->query("UPDATE ".__TBL_HUXUAN_HXU__." SET ifok=".$ifendok." WHERE id=".$id);
	AddLog('【互选相亲会】互选成功用户操作->牵线状态【'.$ifendok_str.'】->【uid:'.$uid.'】');
	json_exit(array('flag'=>1,'msg'=>'操作成功'));
}elseif($submitok=='addupdate'){
	if (!ifint($Skey_uid))alert_adm("请输入合法的用户UID","-1");
	$row = $db->ROW(__TBL_USER__,"id","id=".$Skey_uid);
	if(!$row)alert_adm("此用户在用户库中不存在","-1");
	$row = $db->ROW(__TBL_HUXUAN_BMU__,"id","fid=".$fid." AND uid=".$Skey_uid);
	if ($row)alert_adm("此用户已经报名，请不要重复添加","-1");
	$db->query("INSERT INTO ".__TBL_HUXUAN_BMU__."  (fid,addtime,uid) VALUES ($fid,".ADDTIME.",$Skey_uid)");
	AddLog('【互选相亲会】新增报名->【互选id:'.$fid.'，报名用户uid:'.$Skey_uid.'】');
	header("Location: huxuan_u.php?fid=".$fid);
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="<?php echo HOST;?>/res/www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<link href="css/main.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css">
<style>
.listdatabox{padding:10px 0}
.listdatabox li{display:inline-block;padding:1px 5px;border:#ddd 1px solid;margin:3px;border-radius:3px;color:#888}
img.photo_s40{border-radius:2px;display:inline-block;;vertical-align:middle}
i.add{display:inline-block;color:#fff;border-radius:50px;width:16px;height:16px;text-align:center;font-size:12px;margin-right:2px}
i.wxlv{color:#31C93C;margin-right:2px}
.mylist{padding:30px}
.mylist dl{width:33%;float:left;padding:10px;text-align:center;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}
.mylist dl dt img{display:block;margin:0 auto 5px auto}
.mylist dl dd{width:100%;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mylist dl dd div{line-height:24px}
.RCWsex{display:inline-block}
.RCWsex li{width:50px}
</style>
</head>
<body class="body">
<?php
if($submitok=='mylist'){?>
	<div class="mylist">
	<?php 
	if (!ifint($senduid))exit('www_zeai_cn_error_senduid');
	$rt=$db->query("SELECT a.uid,a.addtime,U.nickname,U.sex,U.grade,U.photo_s FROM ".__TBL_HUXUAN_HXU__." a,".__TBL_USER__." U WHERE a.fid=".$fid." AND a.uid=U.id AND senduid=".$senduid." ORDER BY a.id DESC");
	$total = $db->num_rows($rt);
	if ($total == 0) {
		echo "暂无信息";
	} else {
		for($i=1;$i<=$total;$i++) {
			$rows = $db->fetch_array($rt,'name');
			if(!$rows) break;
			$uid = $rows['uid'];
			$nickname = trimhtml(dataIO($rows['nickname'],'out'));
			$sex      = $rows['sex'];
			$grade    = $rows['grade'];
			$photo_s  = $rows['photo_s'];
			$addtime  = YmdHis($rows['addtime']);
			$photo_s_url = (!empty($photo_s))?$_ZEAI['up2'].'/'.$photo_s:HOST.'/res/photo_s'.$sex.'.png';
			?>
			<dl><dt><img class="photo_s" src="<?php echo $photo_s_url; ?>"></dt>
            <dd>
				<?php echo uicon($sex.$grade) ?> <?php echo $nickname; ?>
                <div>UID：<?php echo $uid;?></div>
            	<div class="C999 S12"><?php echo $addtime;?></div>
            </dd></dl>
        	<?php	
		}
	}
    ?>
    </div>
	<?php	
exit;}

	$SQL  = "a.fid=".$fid;
	$FLD=",U.nickname,U.sex,U.grade,U.photo_s,U.photo_f,U.areatitle,U.birthday,U.heigh,U.edu";
	$ORDER=" ORDER BY a.id DESC";
	$Skey = trimm($Skey);
	if (ifmob($Skey)){
		$SQL .= " AND (U.mob=$Skey) ";
	}elseif(ifint($Skey)){
		if($t==2){
			$SQL .= " AND (a.senduid=$Skey) ";
		}else{
			$SQL .= " AND (a.uid=$Skey) ";
		}
	}elseif(!empty($Skey)){
		$SQL .= " AND ( U.truename LIKE '%".$Skey."%' || U.nickname LIKE '%".$Skey."%' )";
	}
	if(ifint($sex))$SQL .= " AND U.sex=".$sex;
	if($t==1){
		$ZEAI_SELECT= "SELECT a.id,a.uid,a.addtime".$FLD." FROM ".__TBL_HUXUAN_BMU__." a,".__TBL_USER__." U WHERE ".$SQL." AND a.uid=U.id ".$ORDER;
	}elseif($t==2){
		$ZEAI_SELECT= "SELECT a.id,a.senduid AS uid,a.addtime".$FLD." FROM ".__TBL_HUXUAN_HXU__." a,".__TBL_USER__." U WHERE ".$SQL." AND a.senduid=U.id GROUP BY a.senduid ".$ORDER;
	}elseif($t==3){
		$SQL .= " AND a.uid=c.senduid AND a.senduid=c.uid AND a.uid=U.id AND c.fid=".$fid;
		$ZEAI_SELECT= "SELECT a.id,a.uid,a.senduid,a.addtime,a.ifok".$FLD." FROM ".__TBL_HUXUAN_HXU__." a,".__TBL_USER__." U,".__TBL_HUXUAN_HXU__." c WHERE ".$SQL." AND a.uid=U.id ".$ORDER;
	}
	//navbox num
	$total1 = $db->COUNT(__TBL_HUXUAN_BMU__,"fid=".$fid);
	$rtt = $db->query("SELECT COUNT(DISTINCT senduid) FROM ".__TBL_HUXUAN_HXU__." WHERE fid=".$fid);
	$roww = $db->fetch_array($rtt);
	$total2 = $roww[0];
	
	$rtt=$db->query("SELECT COUNT(*) FROM ".__TBL_HUXUAN_HXU__." a,".__TBL_USER__." U,".__TBL_HUXUAN_HXU__." c WHERE a.fid=".$fid." AND a.uid=c.senduid AND a.senduid=c.uid AND a.senduid=U.id AND c.fid=".$fid);
	$roww = $db->fetch_array($rtt,'num');
	$total3 = $roww[0];
	//
	$rt = $db->query($ZEAI_SELECT);
	$total = $db->num_rows($rt);
	if ($total <= 0 ) {
		echo "<div class='nodataicoS Mtop100'><i></i>暂无信息";
		if (!empty($SQL))echo "<br><br><a class='aQINGed' href='javascript:history.back(-1)'>重新筛选</a>";
		echo "</div>";?>
        <br>
        <form name="www.yzlove.com.v8.0..QQ797311" method="post" action="<?php echo SELF; ?>">
        <input name="Skey_uid" type="text" id="Skey_uid" maxlength="25" class="input size2 W100" placeholder="输入用户ID">
        <input type="hidden" name="fid" value="<?php echo $fid;?>" />
        <input type="hidden" name="submitok" value="addupdate" />
        <button type="submit" class="btn size2 QING"><i class="ico">&#xe622;</i> 新增报名</button>
        </form>
    <?php
	} else {
		$page_skin = 1;$pagesize=$_ADM['admPageSize'];require_once ZEAI.'sub/page.php';
	?>
    <div class="navbox">
    <a href="huxuan_u.php?fid=<?php echo $fid;?>&t=1" <?php echo ($t==1)?' class="ed"':'';?>>报名用户<?php echo '<b>'.$total1.'</b>';?></a>
    <a href="huxuan_u.php?fid=<?php echo $fid;?>&t=2" <?php echo ($t==2)?' class="ed"':'';?>>互选用户<?php echo '<b class="border">'.$total2.'</b>';?></a>
    <a href="huxuan_u.php?fid=<?php echo $fid;?>&t=3" <?php echo ($t==3)?' class="ed"':'';?>>互选成功<?php echo '<b class="border">'.$total3.'</b>';?></a>
    <div class="Rsobox"></div>
    <div class="clear"></div></div>
    <div class="fixedblank"></div>
    <table class="table0 W98_ Mtop10">
        <tr>
        <td align="left" class="S14">
          <form name="www.yzlove.com.v7.0..QQ7144100" method="get" action="<?php echo SELF; ?>">
            <input name="Skey" type="text" id="Skey" maxlength="25" class="input size2 W200" value="<?php echo $Skey;?>" placeholder="按UID/姓名/手机/昵称查询">
            <ul id="sex_box" name="sex_box" class="size2 RCW RCWsex">
            <?php 
            $sexARR = json_decode($_UDATA['sex'],true);
            foreach ($sexARR as $V) {?>
            <li><input type="radio" class="radioskin" id="sex<?php echo $V['i'];?>" name="sex" value="<?php echo $V['i'];?>"<?php echo ($sex == $V['i'])?' checked':''; ?>><label for="sex<?php echo $V['i'];?>" class="radioskin-label"><i class="i1"></i><b><?php echo $V['v'];?></b></label></li>
            <?php }?>
            </ul>
            <input type="hidden" name="fid" value="<?php echo $fid;?>" />
            <input type="hidden" name="t" value="<?php echo $t;?>" />
            <button type="submit" class="btn size2 QING"><i class="ico">&#xe6c4;</i> 搜索</button>
          </form>          
        </td>
        <td align="left" class="S14">
 
        </td>
        <td align="right" class="S14">
        
        <form name="www.yzlove.com.v8.0..QQ797311" method="post" action="<?php echo SELF; ?>">
        <input name="Skey_uid" type="text" id="Skey_uid" maxlength="25" class="input size2 W100" placeholder="输入UID">
        <input type="hidden" name="fid" value="<?php echo $fid;?>" />
        <input type="hidden" name="submitok" value="addupdate" />
        <button type="submit" class="btn size2 QING"><i class="ico">&#xe622;</i> 新增报名</button>
        </form>
        
        </td>
        </tr>
    </table>
<div class="clear"></div>
<form id="www_zeai_cn_FORM">
    <table class="tablelist W95_ Mtop10 Mbottom50">
    <tr>
    <th width="20"><input type="checkbox" id="checkboxall1" class="checkskin checkboxall"><label for="checkboxall1" class="checkskin-label"><i class="i1"></i></label></th>
    <th width="80" align="center">&nbsp;</th>
    <th width="240" align="left">用户资料<?php if ($t == 3){echo '(被动方)';}?></th>
    <th align="center"></th>
    <th width="80" align="center"></th>
    <th width="240" align="left"><?php if ($t == 3){echo '用户资料(主动方)';}?></th>
    <th width="70"><?php if ($t != 3){echo '时间';}?></th>
    <th width="100" align="center"><?php if ($t == 1){echo '删除';}?></th>
    <th width="10" align="center">&nbsp;</th>
    </tr>
    <?php
    for($i=1;$i<=$pagesize;$i++) {
        $rows = $db->fetch_array($rt,'name');
        if(!$rows) break;
        $id  = $rows['id'];
		//
        $uid = $rows['uid'];
		$nickname = trimhtml(dataIO($rows['nickname'],'out'));
		$nickname = str_replace($Skey,"<b class='Cf00'>".$Skey."</b>",$nickname);
		$sex      = $rows['sex'];
		$grade    = $rows['grade'];
		$photo_s  = $rows['photo_s'];
		$photo_f  = $rows['photo_f'];
		$areatitle= $rows['areatitle'];
		$birthday = $rows['birthday'];
		$heigh    = $rows['heigh'];
		$edu      = $rows['edu'];
		$addtime  = YmdHis($rows['addtime']);
		//
		$birthday_str  = (@getage($birthday)<=0)?'':'<li>'.getage($birthday).'岁</li>';
		$heigh_str     = (empty($heigh))?'':'<li>'.udata('heigh',$heigh).'</li>';
		$aARR = explode(' ',$areatitle);$areatitle = $aARR[1].$aARR[2];
		$areatitle_str = (empty($areatitle))?'':'<li>'.$areatitle.'</li>';
		$edu_str       = (!ifint($edu))?'':'<li>'.udata('edu',$edu).'</li>';
		$udata_str = $birthday_str.$heigh_str.$edu_str.$areatitle_str;
		$href        = Href('crm_u',$uid);
		$photo_s_url = (!empty($photo_s) && $photo_f==1)?$_ZEAI['up2'].'/'.$photo_s:HOST.'/res/photo_s'.$sex.'.png';
		//
		if($t==3){
			$ifok    = $rows['ifok'];
			$senduid = $rows['senduid'];
			$row2 = $db->ROW(__TBL_USER__,"id,nickname,sex,grade,photo_s,photo_f,areatitle,birthday,heigh,edu","id=".$senduid);
			$nickname2 = trimhtml(dataIO($row2['nickname'],'out'));
			$sex2      = $row2['sex'];
			$grade2    = $row2['grade'];
			$photo_s2  = $row2['photo_s'];
			$photo_f2  = $row2['photo_f'];
			$areatitle2= $row2['areatitle'];
			$birthday2 = $row2['birthday'];
			$heigh2    = $row2['heigh'];
			$edu2      = $row2['edu'];
			//
			$birthday_str2  = (@getage($birthday2)<=0)?'':'<li>'.getage($birthday2).'岁</li>';
			$heigh_str2     = (empty($heigh2))?'':'<li>'.udata('heigh',$heigh2).'</li>';
			$aARR = explode(' ',$areatitle2);$areatitle2 = $aARR[1].$aARR[2];
			$areatitle_str2 = (empty($areatitle2))?'':'<li>'.$areatitle2.'</li>';
			$edu_str2       = (!ifint($edu2))?'':'<li>'.udata('edu',$edu2).'</li>';
			$udata_str2 = $birthday_str2.$heigh_str2.$edu_str2.$areatitle_str2;
			$href2        = Href('u',$senduid);
			$photo_s_url2 = (!empty($photo_s2) && $photo_f2==1)?$_ZEAI['up2'].'/'.$photo_s2:HOST.'/res/photo_s'.$sex2.'.png';
		}elseif($t==2){
			$Unum = $db->COUNT(__TBL_HUXUAN_HXU__,"fid=$fid AND senduid=".$uid);
		}
    ?>
	<tr id="tr<?php echo $id;?>">
    <td width="20" height="30" align="left"><input type="checkbox" name="list[]" value="<?php echo $id; ?>" id="id<?php echo $id; ?>" uid="<?php echo $uid; ?>" class="checkskin"><label for="id<?php echo $id; ?>" class="checkskin-label"><i class="i1"></i></label></td>
    <td width="80" height="30" align="center">
    <a href="<?php echo $href;?>" class="photo_ss" uid="<?php echo $uid;?>" title2="<?php echo $nickname;?>"><img class="photo_s" src="<?php echo $photo_s_url; ?>"></a></td>
    <td width="240" height="30" align="left">
      <div class="listdatabox">
          <div style="margin-bottom:5px"><?php echo uicon($sex.$grade) ?> <?php echo $nickname; ?>　UID：<?php echo $uid;?>　
          
          <?php if ($t == 2){?>
          <a href="javascript:;" class="<?php echo ($Unum >0)?'aHONG':'aHUI';?>" onClick="zeai.iframe('【UID:<?php echo $uid;?>•<?php echo trimhtml($nickname);?>】选择的用户','huxuan_u.php?submitok=mylist&fid=<?php echo $fid;?>&senduid=<?php echo $uid;?>',500,450)"><?php echo $Unum;?></a>
          <?php }?>
          
          </div>
          <?php echo $udata_str;?>
      </div>
    </td>
    <td height="30" align="center" class="C666">
	<?php if ($t == 3){?>
    <div><?php echo $addtime;?></div>
    <i class="ico Caaa S18">&#xe635;</i>
	<?php }?></td>
    <td width="80" height="30" align="center"><?php if ($t == 3){?><a href="<?php echo $href;?>" class="photo_ss" uid="<?php echo $senduid;?>" title2="<?php echo $nickname2;?>"><img class="photo_s" src="<?php echo $photo_s_url2; ?>"></a><?php }?></td>
    <td width="240" height="30" align="left">
	<?php if ($t == 3){?>
	<div class="listdatabox">
      <div style="margin-bottom:5px"><?php echo uicon($sex2.$grade2) ?> <?php echo $nickname2; ?>　UID：<?php echo $senduid;?></div>
      <?php echo $udata_str2;?>
	</div>  
    <?php }?>  
    </td>
    <td width="70" height="30" align="left" class="C999"><?php if ($t != 3){?><?php echo $addtime;?><?php }?></td>
    <td width="100" align="center"<?php if ($t == 3){echo ' style="padding:10px 0"';}?>>
	<?php if ($t == 1){?>
        <a title="删除" fid="<?php echo $fid; ?>" clsid="<?php echo $id; ?>" class="delico"></a>
	<?php }elseif($t==3){
		if($ifok==1){
			$ifok_cls=' LV';
			$ifok_str='已确定';
		}else{
			$ifok_cls=' BAI';
			$ifok_str='未确定';
		}
		?>
    	<button type="button" fid="<?php echo $fid;?>" clsid="<?php echo $id;?>" class="W80 btn ifok size2 <?php echo $ifok_cls;?>"><?php echo $ifok_str;?></button>
		<?php
        $rowf = $db->ROW(__TBL_QIANXIAN__,"uid","senduid=".$senduid." AND uid=".$uid,"num");
        if ($rowf){
            $tjstr = '<i class="ico">&#xe60f;</i> 已牵线';
            $tjscls= 'HONG2_';
        }else{
            $tjstr = '<i class="ico">&#xe622;</i> 牵线';
            $tjscls= 'BAI';
        }
        ?>
        <br><br><button type="button" senduid="<?php echo $senduid;?>" uid="<?php echo $uid;?>" class="W80 btn qianxian size2 <?php echo $tjscls;?>"><?php echo $tjstr;?></button>
    <?php }?>
    </td>
    <td width="10" align="center">&nbsp;</td>
    </tr>
    <?php } ?>
    <div class="listbottombox">
        <input type="checkbox" id="checkboxall2" class="checkskin checkboxall"><label for="checkboxall2" class="checkskin-label"><i class="i1"></i></label>　
        <button type="button" id="btnsend" value="" class="btn size2 disabled action" onClick="sendTipFn2(this);"><i class="ico">&#xe676;</i> 发送消息</button>
        <input type="hidden" name="submitok" id="submitok" value="" />
        <?php if ($total > $pagesize)echo '<div class="pagebox FR" style="margin-right:20px">'.$pagelist.'</div>'; ?></div>
    </div>
</table>
</form>
<?php }?>
<br><br><br><br>
<script>
/*zeai.listEach('.photo_ss',function(obj){
	obj.onclick = function(){
		var uid = parseInt(obj.getAttribute("uid")),
		title2 = obj.getAttribute("title2"),
		urlpre = 'crm_user_detail.php?t=2&iframenav=1&uid='+uid;
		urlpre_qx = 'crm_select.php?k=qx&uid='+uid+'&t=';
		urlpre_yj = 'crm_select.php?k=yj&uid='+uid+'&t=';
		zeai.iframe('【'+decodeURIComponent(title2)+'】'+
		'<div class="iframeAbox modedatabox" id="modedatabox">'+
		'<a onclick="iframe_A(\'modedatabox\',\''+urlpre+'\',this);" class="ed"><i class="ico add">&#xe7a0;</i> 个人主页</a>'+
		'<a onclick="iframe_A(\'modedatabox\',\''+urlpre_qx+'3\',this);"><i class="ico add">&#xe64c;</i> 按择偶要求（牵线）</a>'+
		'<a onclick="iframe_A(\'modedatabox\',\''+urlpre_yj+'3\',this);"><i class="ico add">&#xe64c;</i> 按择偶要求（约见）</a>'+
		'<a onclick="iframe_A(\'modedatabox\',\''+urlpre_qx+'4\',this);"><i class="ico add">&#xe6c4;</i> 按搜索条件</a>'+
		'</div>',urlpre);
	}
});
*/

zeai.listEach('.ifok',function(obj){
	obj.onclick = function(){
		var id = parseInt(obj.getAttribute("clsid")),
		fid = parseInt(obj.getAttribute("fid"));
		zeai.confirm('<b>确定已服务或牵线成功了么，此处只做记录之用，无其它用途</b><br>请在做好相关互选承诺服务后再点确定<br>再次点击将变为【未确定】',function(){
			zeai.ajax({url:'huxuan_u'+zeai.ajxext+'submitok=ifok_update&fid='+fid+'&id='+id},function(e){var rs=zeai.jsoneval(e);
				zeai.msg(0);zeai.msg(rs.msg);
				if(rs.flag==1){setTimeout(function(){location.reload(true);},1000);}
			});
		});
	}
});
/*qianxian*/
zeai.listEach('.qianxian',function(obj){
	obj.onclick = function(){
		var senduid = parseInt(obj.getAttribute("senduid")),
		uid = parseInt(obj.getAttribute("uid")),
		str = (obj.hasClass('HONG2_'))?'该用户已经牵线，确定再次新增牵线记录么？':'<b>确定要新增牵线记录么</b>？<br>新增后，牵线记录状态将默认为<font class="Cf60">【牵线进行中】</font><br>可在后台顶部【用户】->左侧【牵线管理】中进行操作“牵线失败”或“牵线成功”信息，并记录相关细则备注';
		zeai.confirm(str,function(){
			zeai.alertplus({title:'请选择牵线发起方',content:'',title1:'会员要求',title2:'红娘主动',
				fn1:function(){qianxianFn(uid,senduid,1);},
				fn2:function(){qianxianFn(uid,senduid,2);}
			});
		});
	}
});
function qianxianFn(uid,senduid,sendkind){
	zeai.alertplus(0);
	zeai.ajax({url:'crm_user_detail_select'+zeai.extname,data:{submitok:'ajax_qianxian_add',uid:uid,senduid:senduid,sendkind:sendkind}},function(e){rs=zeai.jsoneval(e);
		zeai.msg(0);zeai.msg(rs.msg);
		if(rs.flag==1){setTimeout(function(){location.reload(true);},1000);}
	});
}
/*qianxian end*/
zeai.listEach('.delico',function(obj){
	obj.onclick = function(){
		var id = parseInt(obj.getAttribute("clsid")),
		fid = parseInt(obj.getAttribute("fid"));
		zeai.confirm('确定真的要删除么（不可恢复）？',function(){
			zeai.ajax({url:'huxuan_u'+zeai.ajxext+'submitok=ajax_del&fid='+fid+'&id='+id},function(e){var rs=zeai.jsoneval(e);
				zeai.msg(0);zeai.msg(rs.msg);
				if(rs.flag==1){setTimeout(function(){location.reload(true);},1000);}
			});
		});
	}
});
var bg = '<?php echo $_Style['list_bg']; ?>',overbg   = '<?php echo $_Style['list_overbg']; ?>',selectbg = '<?php echo $_Style['list_selectbg']; ?>';
</script>
<script src="js/zeai_tablelist.js?<?php echo $_ZEAI['cache_str'];?>"></script>
</body>
</html>
